package com.ykj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ykj.dto.Result;
import com.ykj.entity.User;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;

/**
 * @author Y2014188432
 */
public interface UserServer extends IService<User> {
    Result getCode(String phone, HttpSession session);

    Result loginByCode(String phone, String code);

    Result loginByPw(String phone, String password);

    Result getMsg();


    Result updateUser(User user);

    Result updatePassword(String password, String passwordNew);

    Result getMessageById(String id);

    Result getUserByPower();

    Result changePower(User user);
}
